class Animal{
    public String name;
    public int age;

    public Animal(String name,int age) {
        this.name = name;
        this.age=age;
    }
    public void eat(){
        System.out.println(name+"正在吃饭");
    }
}
interface IFlying{
    void flying();
}
interface IRunning{
    void running();
}
class Dog extends Animal implements IFlying,IRunning{
    public Dog(String name,int age){
        super(name,age);
    }


    @Override
    public void flying() {
        System.out.println(name+"正在游泳");
    }

    @Override
    public void running() {
        System.out.println(name+"正在跑步");
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println(name+"正在吃狗粮");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog("欢欢",9);
        dog.flying();
        dog.running();
        dog.eat();
    }
}
